package com.kevin.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kevin.service.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * schedulejoblog 实体类
 * @author makejava
 * @date 2023-04-06
 */
@TableName(value = "schedule_job_log")
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class ScheduleJobLog extends BaseEntity {

    /** 任务id */
    @ApiModelProperty(value = "任务id")
    @TableField("job_id")
    private Long jobId;

    /** 任务名称 */
    @ApiModelProperty(value = "任务名称")
    @TableField("job_name")
    private String jobName;

    /** 任务组名 */
    @ApiModelProperty(value = "任务组名")
    @TableField("job_group")
    private String jobGroup;

    /** spring bean名称 */
    @ApiModelProperty(value = "spring bean名称")
    @TableField("bean_name")
    private String beanName;

    /** 执行方法 */
    @ApiModelProperty(value = "执行方法")
    @TableField("method")
    private String method;

    /** 参数 */
    @ApiModelProperty(value = "参数")
    @TableField("params")
    private String params;

    /** 任务状态    0：失败    1：成功 */
    @ApiModelProperty(value = "任务状态    0：失败    1：成功")
    @TableField("status")
    private Integer status;

    /** 异常信息 */
    @ApiModelProperty(value = "异常信息")
    @TableField("error")
    private String error;

    /** 耗时(单位：毫秒) */
    @ApiModelProperty(value = "耗时(单位：毫秒)")
    @TableField("times")
    private Long times;
}

